<?php /* Smarty version Smarty-3.1.13, created on 2013-07-09 04:37:47
         compiled from ".\templates\loandetail.tpl" */ ?>
<?php /*%%SmartyHeaderCode:88051d57376a274a8-66403018%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9da89715badbb2fcefb0e7943f66c74eaf916e4e' => 
    array (
      0 => '.\\templates\\loandetail.tpl',
      1 => 1373334807,
      2 => 'file',
    ),
    '76b183ae9ab092866ef1aa82b739ad39fdc5fb7c' => 
    array (
      0 => 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\fin3\\templates\\link.tpl',
      1 => 1373336611,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '88051d57376a274a8-66403018',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51d57376ca3034_69745340',
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51d57376ca3034_69745340')) {function content_51d57376ca3034_69745340($_smarty_tpl) {?><?php if (!is_callable('smarty_function_html_options')) include 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\fin3\\include\\Smarty\\libs\\plugins\\function.html_options.php';
if (!is_callable('smarty_function_html_select_date')) include 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\fin3\\include\\Smarty\\libs\\plugins\\function.html_select_date.php';
?><html>
	<head>
	  <link rel="stylesheet" href="css/style1.css">
	  <link rel="stylesheet" type="text/css" href="./css/main.css" />
    <link rel="stylesheet" type="text/css" href="./css/style.css" />
	</head>
	
  <script src="js/jquery.min.js" ></script>
  <style type="text/css">
  	input[type="submit"], input[type="reset"] {
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;  
    border-radius: 10px;
    }

    input[type="submit"], input[type="reset"] {
    
    
    float: right;
      margin: 2em 1em 0 1em;
      width: 8em;
      padding: .5em;
      border: 1px solid #666;
      -moz-border-radius: 10px;
      -webkit-border-radius: 10px;  
      border-radius: 10px;
      -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
      -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
      box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
      color: #fff;
      background: #0a0;
      font-size: 1em;
      line-height: 1em;
      font-weight: bold;
      opacity: .7;
      -webkit-appearance: none;
      -moz-transition: opacity .5s;
      -webkit-transition: opacity .5s;
      -o-transition: opacity .5s;
      transition: opacity .5s;
    }
    
    input[type="submit"]:hover,
    input[type="submit"]:active,
    input[type="reset"]:hover,
    input[type="reset"]:active {
      cursor: pointer;
      opacity: 1;
    }
    
    input[type="submit"]:active, input[type="button"]:active {
      color: #333;
      background: #eee;
      -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8) inset;
      -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8) inset;
      box-shadow: 0 0 .5em rgba(0, 0, 0, .8) inset;
    }
    
    input[type="reset"] {
      background: #f33;
    }	
  </style>  
  <script src="js/jquery-ui.js"></script>
  <script type="text/javascript">
    function InstallmentAmount(obj)
    {
    	if(obj.checked == true)
    	{
    	  var ckval=obj.value;
    	  var chid=obj.id;
    	  $("#Receive"+chid).val(ckval);	
    	}
    	else
    	{
    		var chid=obj.id;
    	  $("#Receive"+chid).val("");
    	}
    }
  </script>

	<body>
  	<ul class="menu">
	    <li><a href="#">Home</a></li>
	    <li><a href="index.php">Party Entry</a></li>
	    <li><a href="loan.php">Loan Entry</a></li>
	    <li><a href="loandetail.php">Loan Detail</a></li>
	    <li><a href="account.php">Account</a></li>
	    <li><a href="transaction.php">Transaction</a></li>
	    <li><a href="#">Display</a>
	      <ul>
	        <li><a href="displayClient.php">Parties</a></li>
	        <li><a href="displayLoan.php">Loans</a></li>
	        <li><a href="dispalyTransaction.php">Transactions</a></li>
	        <li><a href="loanreceived.php">LoanReceived</a></li>
	      </ul>
	    </li>
    </ul>
    
    <form name="installmentForm" id="installmentForm" method="post">
      <table align="center" cellpadding="5" cellspacing="5" border="1">
      	<h1 align="center">Loan Detail</h1>
      	<tr>
      		<td>Loan Id:<input type="text" value="<?php if ($_smarty_tpl->tpl_vars['loanIdVar']->value!=0){?><?php echo $_smarty_tpl->tpl_vars['loanIdVar']->value;?>
<?php }?>" name="loanId" id="loanId"></td>
      		<td>
      		  <select name="partyNameSel" id="partyNameSel">
              <option selected=selected value="0">-- All --</option>
              <?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['selectPartyId']->value,'output'=>$_smarty_tpl->tpl_vars['selectPartyName']->value,'selected'=>$_smarty_tpl->tpl_vars['selectedParty']->value),$_smarty_tpl);?>

            </select>
      		</td>
      	  <th>Receive Payment For : </th>
      	  <td><?php echo smarty_function_html_select_date(array('prefix'=>'curDate','field_order'=>"DmY",'month_format'=>"%m",'start_year'=>'-5','end_year'=>'+5','time'=>$_smarty_tpl->tpl_vars['today']->value),$_smarty_tpl);?>
&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="go" id="go" value="Go"></td>
      	</tr>
      </table>
    </form>
    <form name="installmentFormDetail" id="installmentFormDetail" method="post">
      <table align="center" cellpadding="5" cellspacing="0" border="1">
      	<tr>
      		<input type="hidden" value=<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
 name="installmentDate">
      		<th>Loan No.</th>
      		<th>Party</th>
      		<th>Installment Date</th>
      		<th>Installment Amount</th>
      		<th>Received</th>
      	</tr>
      	<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['user'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['user']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['name'] = 'user';
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['installmentArr']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['user']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['user']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['user']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['user']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['user']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['user']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['total']);
?>
      	<tr>
      		<td><?php echo $_smarty_tpl->tpl_vars['installmentArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['user']['index']]['loanId'];?>
</td>
      		<td><?php echo $_smarty_tpl->tpl_vars['installmentArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['user']['index']]['partyName'];?>
</td>
      		<td><?php echo $_smarty_tpl->tpl_vars['installmentArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['user']['index']]['installmentDate'];?>
</td>
      		<td align="right"><?php echo $_smarty_tpl->tpl_vars['installmentArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['user']['index']]['installmentAmount'];?>
</td>
      		<td>
      		  <input type="checkbox" name="Received" id="<?php echo $_smarty_tpl->tpl_vars['installmentArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['user']['index']]['installmentId'];?>
" onclick="InstallmentAmount(this)" value="<?php echo $_smarty_tpl->tpl_vars['installmentArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['user']['index']]['installmentAmount'];?>
">
      		  <input type="text" name="installmentAmount[]" id="Receive<?php echo $_smarty_tpl->tpl_vars['installmentArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['user']['index']]['installmentId'];?>
" >
      		  <input type="hidden" name="InstallmentAmountVal" id="InstallmentAmountVal" value="<?php echo $_smarty_tpl->tpl_vars['installmentArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['user']['index']]['installmentAmount'];?>
">
      		  <input type="hidden" name="InstallmentDate[]" id="InstallmentDate" value="<?php echo $_smarty_tpl->tpl_vars['installmentArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['user']['index']]['installmentDate'];?>
">
      		  <input type="hidden" name="InstallmentsID[]" id="InstallmentsID" value="<?php echo $_smarty_tpl->tpl_vars['installmentArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['user']['index']]['installmentId'];?>
">
      		  <input type="hidden" name="loanId[]" id="loanId" value="<?php echo $_smarty_tpl->tpl_vars['installmentArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['user']['index']]['loanId'];?>
">
      		</td>
      	</tr>
      	<?php endfor; endif; ?>
      	<tr>
      		<td colspan="4" align="right"><?php echo $_smarty_tpl->tpl_vars['toatalAmount']->value;?>
</td>
      	  <td colspan="4" align="right"><input type="submit" name="sub" id="sub" value="SAVE"></td>
      	</tr>
      </table>
    </form>
    

	</body>
</html><?php }} ?>